#ifndef __NONCOPYABLE_H__
#define __NONCOPYABLE_H__

class Noncopyable
{
public:
    //使用默认构造
    Noncopyable() = default;

    //使用默认析构
    ~Noncopyable() = default;

    //禁用拷贝构造
    Noncopyable(const Noncopyable&) = delete;

    //禁用赋值
    Noncopyable& operator=(const Noncopyable&) = delete;
};
    

#endif // !__NONCOPYABLE_H__